package com.ruoyi.web.controller.dm;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.dm.domain.TrackTleConditonParam;
import com.ruoyi.dm.domain.TrackTleConditonVO;
import com.ruoyi.dm.service.ITrackConditionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * tle目标
 */
@Slf4j
@RestController
@RequestMapping("/track/station")
@Api(tags = "数据采集-空间目标态势")
public class TrackTleConditionController extends BaseController {

    @Autowired
    private ITrackConditionService conditionService;

    /**
     * 检索
     * @param param
     * @return
     */
    @ApiOperation("信息查询")
    @PostMapping("/query")
    public R<IPage<TrackTleConditonVO>> query(@ApiParam(name ="param",value="文件检索参数对象",required = false)@Validated @RequestBody TrackTleConditonParam param) {
        IPage<TrackTleConditonVO> query = conditionService.query(param);
        return R.ok(query);
    }

}
